package com.yesjpt.domain;

import java.io.Serializable;

import java.util.Date;

import com.alibaba.fastjson2.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
public abstract class BaseEntity<ID> implements Serializable {
	private static final long serialVersionUID = 2054813493011812469L;

	private ID id;
	private String code; //编码
	private String name; //名称
	private String remark;
	private String creatorId;
	private String updaterId;
	private String ext; //扩展字段
	private Integer sort; //序号
	private Integer isdel = 0; //删除标记
	private String fileId; //附件id
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime = new Date();

	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	// 视图开始
	private JSONObject append; // setView()的时候可能要用
	private String creator;
	private String updater;
	private String statusVal;//状态
	private String typeVal;//类型
	private String typeName;//参照字典
	private String kindVal;//类型
	private String kindName;//类型，参照字典的ID
	private String isdelVal;//删除标记
	private String fileName; //文件名
	private String fileFullUrl; //下载地址

	
}
